export default function timestampToTime (time) {// 时间戳为10位需*1000，时间戳为13位的话不需乘1000
    // var date = new Date(time * 1000) 
    var date = new Date(time) 
    let y = date.getFullYear()
    let MM = date.getMonth() + 1
    MM = MM < 10 ? ('0' + MM) : MM   
     let d = date.getDate()  
     let h = date.getHours()
      let m = date.getMinutes()
      let s = date.getSeconds()
    d = d < 10 ? ('0' + d) : d      
    h = h < 10 ? ('0' + h) : h     
    m = m < 10 ? ('0' + m) : m      
    s = s < 10 ? ('0' + s) : s      
    return  h + ':' +m 
}